Package client.teavm
Klasse ImportedApi
java.lang.Object
client.teavm.ImportedApi
- Alle implementierten Schnittstellen:
IImportedApi
Browser needs float array for each channel with sound samples with a value
range of -1..1. And pixel data is required as a byte array containing color
data four bytes each pixel RGBA.
Note: A lookup table is used for sample data conversion (short to
float) for performance reasons
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate static final Stringprotected FloatBufferprotected FloatBuffer -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidinitGaugeBuffer(String type, int chipNum, int pathLength) initPixelBuffer(int maxWidth, int maxHeight) initSampleBuffer(int chunkFrames, int channels) voidprocessOsc(int sidNum, ByteBuffer wav0, String wav0Txt, ByteBuffer wav1, String wav1Txt, ByteBuffer wav2, String wav2Txt, ByteBuffer env0, String env0Txt, ByteBuffer env1, String env1Txt, ByteBuffer env2, String env2Txt, ByteBuffer fre0, String frq0Txt, ByteBuffer frq1, String frq1Txt, ByteBuffer frq2, String frq2Txt, ByteBuffer vol, String volTxt, ByteBuffer res, String resTxt, ByteBuffer fil, String filTxt) static voidprocessOscJS(int sidNum, byte[] wav0, String wav0Txt, byte[] wav1, String wav1Txt, byte[] wav2, String wav2Txt, byte[] env0, String env0Txt, byte[] env1, String env1Txt, byte[] env2, String env2Txt, byte[] frq0, String frq0Txt, byte[] frq1, String frq1Txt, byte[] frq2, String frq2Txt, byte[] vol, String volTxt, byte[] res, String resTxt, byte[] fil, String filTxt) voidprocessPixels(ByteBuffer pixels) static voidprocessPixelsJS(byte[] pi, int le) voidprocessPrinter(IPaper.Outputs output) static voidvoidprocessSamples(ByteBuffer sampleBuffer, float[] lookupTable) static voidprocessSamplesJS(float[] lf, float[] ri, int le) voidprocessSidWrite(long absTime, int relTime, int addr, int value) static voidprocessSidWriteJS(double at, int ti, int ad, int va) voidprocessTimerEnd(double end) static voidprocessTimerEndJS(double ed) voidwhatsSid(byte[] array) static voidwhatsSidJS(byte[] ar, int le)
-
Felddetails
-
MODULE_NAME
- Siehe auch:
-
resultL
-
resultR
-
-
Konstruktordetails
-
ImportedApi
public ImportedApi()
-
-
Methodendetails
-
initControlBuffer
public void initControlBuffer()- Angegeben von:
initControlBufferin SchnittstelleIImportedApi
-
initSampleBuffer
- Angegeben von:
initSampleBufferin SchnittstelleIImportedApi
-
initPixelBuffer
- Angegeben von:
initPixelBufferin SchnittstelleIImportedApi
-
initGaugeBuffer
- Angegeben von:
initGaugeBufferin SchnittstelleIImportedApi
-
processSamples
- Angegeben von:
processSamplesin SchnittstelleIImportedApi
-
processPixels
- Angegeben von:
processPixelsin SchnittstelleIImportedApi
-
processOsc
public void processOsc(int sidNum, ByteBuffer wav0, String wav0Txt, ByteBuffer wav1, String wav1Txt, ByteBuffer wav2, String wav2Txt, ByteBuffer env0, String env0Txt, ByteBuffer env1, String env1Txt, ByteBuffer env2, String env2Txt, ByteBuffer fre0, String frq0Txt, ByteBuffer frq1, String frq1Txt, ByteBuffer frq2, String frq2Txt, ByteBuffer vol, String volTxt, ByteBuffer res, String resTxt, ByteBuffer fil, String filTxt) - Angegeben von:
processOscin SchnittstelleIImportedApi
-
processSidWrite
public void processSidWrite(long absTime, int relTime, int addr, int value) - Angegeben von:
processSidWritein SchnittstelleIImportedApi
-
processTimerEnd
public void processTimerEnd(double end) - Angegeben von:
processTimerEndin SchnittstelleIImportedApi
-
processPrinter
- Angegeben von:
processPrinterin SchnittstelleIImportedApi
-
whatsSid
public void whatsSid(byte[] array) - Angegeben von:
whatsSidin SchnittstelleIImportedApi
-
processSamplesJS
public static void processSamplesJS(float[] lf, float[] ri, int le) -
processPixelsJS
public static void processPixelsJS(byte[] pi, int le) -
processSidWriteJS
public static void processSidWriteJS(double at, int ti, int ad, int va) -
processOscJS
public static void processOscJS(int sidNum, byte[] wav0, String wav0Txt, byte[] wav1, String wav1Txt, byte[] wav2, String wav2Txt, byte[] env0, String env0Txt, byte[] env1, String env1Txt, byte[] env2, String env2Txt, byte[] frq0, String frq0Txt, byte[] frq1, String frq1Txt, byte[] frq2, String frq2Txt, byte[] vol, String volTxt, byte[] res, String resTxt, byte[] fil, String filTxt) -
processTimerEndJS
public static void processTimerEndJS(double ed) -
processPrinterJS
-
whatsSidJS
public static void whatsSidJS(byte[] ar, int le)
-